/*
package com.hsmw.api.filter;

import com.alibaba.druid.util.Utils;
import org.springframework.stereotype.Component;

import javax.servlet.*;
import java.io.IOException;

@Component
public class BinnerFilter  implements Filter {
    final String filePath = "support/http/resources/js/common.js";
    @Override
    public void init(javax.servlet.FilterConfig filterConfig) throws ServletException
    {
    }
    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
            throws IOException, ServletException
    {
      */
/*  chain.doFilter(request, response);
        // 重置缓冲区，响应头不会被重置
        response.resetBuffer();
        // 获取common.js
        String text = Utils.readFromResource(filePath);
        // 正则替换banner, 除去底部的广告信息
        text = text.replaceAll("<a.*?banner\"></a><br/>", "");
        text = text.replaceAll("powered.*?shrek.wang</a>", "");
        response.getWriter().write(text);*//*

    }
    @Override
    public void destroy(){
    }
}
*/
